<template>
  <div class="notfound-container">
    <div class="tiktok-404">
      <div class="error-code">
        <span class="number">4</span>
        <div class="tiktok-icon">
          <div class="icon-inner"></div>
        </div>
        <span class="number">4</span>
      </div>
      <div class="error-message">哎呀！页面不见了</div>
      <div class="error-description">您访问的页面可能被删除或不存在</div>
      <button class="back-button" @click="goHome">返回首页</button>
    </div>
  </div>
</template>

<script>
export default {
  name: "NotFound",
  methods: {
    goHome() {
      this.$router.push({ name: "Home" });
    },
  },
};
</script>

<style scoped lang="less">
.notfound-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.tiktok-404 {
  text-align: center;
  padding: 20px;
}

.error-code {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.number {
  font-size: 120px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tiktok-icon {
  width: 100px;
  height: 100px;
  margin: 0 20px;
  position: relative;
  transform: rotate(45deg);
}

.icon-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff0055 0%, #ff0080 100%);
  clip-path: polygon(
    30% 0%,
    70% 0%,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0% 70%,
    0% 30%
  );
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 0, 85, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 85, 0);
  }
}

.error-message {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.error-description {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.back-button {
  background: linear-gradient(135deg, #ff0055 0%, #ff0080 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.4);
  }

  &:active {
    transform: translateY(0);
  }
}
</style>
